﻿using System;
using System.Windows.Controls;

namespace Hetymine.Executioner.Controls {
    public class ScrollBarVisibilityEventArgs : EventArgs {
        public ScrollBarVisibilityEventArgs(ScrollBarVisibility horizontalScrollBarVisibility, ScrollBarVisibility verticalScrollBarVisibility) {
            this.HorizontalScrollBarVisibility = horizontalScrollBarVisibility;
            this.VerticalScrollBarVisibility = verticalScrollBarVisibility;                       
        }

        public ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
        public ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
    }
    public delegate void ScrollBarVisibilityEventHandler(object sender, ScrollBarVisibilityEventArgs e);
    /// <summary>
    /// Interface to inform container controls that this control handles it's own scrolling
    /// </summary>
    public interface IScrollable {
        ScrollBarVisibility HorizontalScrollBarVisibility { get; set; }
        ScrollBarVisibility VerticalScrollBarVisibility { get; set; }
        event ScrollBarVisibilityEventHandler ScrollBarVisibilityChanged;
    }
}
